
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>淘宝</title>
  <link rel="stylesheet" href="//at.alicdn.com/t/font_2589852_amo0gn1sajf.css">
</head>
<body>
  <div id='app'></div>
  <script>
    let doc = document.documentElement
    let width = doc.clientWidth
    let ratio = width / 375
    let fontSize = 10 * ratio
    if (fontSize > 20) fontSize = 20
    doc.style.fontSize = fontSize + 'px'
  </script>
</body>
</html>